{cm var="list" vid="'.$param['id'].'" pid="'.$param['pid'].'" sid="'.$param['sid'].'" page="true" limit="'.$GLOBALS['config']['user']['sys']['user_cmnum'].'" order="cm_addtime desc"}{/cm}
<ul class="ui-comment" id="datalist" data-count="{$list->total()}">
  {notempty name="list"}
  {volist name="list" id="zanpian"}
  {php}
  $lou=$list->total()-(($list->currentPage()-1)*$list->listRows())-$i+1;{/php}
  <li id="li{$zanpian['cm_id']}" class="comment-item clearfix">
    <div class="comment-avatar"><a href="{:zanpian_user_url('user/home/index',$zanpian)}" target="_blank"><img src="{:zanpian_avatar_url($zanpian)}"></a><div class="comment-lou">{$lou}楼</div></div>
    <div class="comment-post">
      <div class="comment-post-arrow"></div>
      <div class="comment-post-cnt clearfix">
        <div class="comment-body">
          <div class="comment-top"><span class="user"><a href="{:zanpian_user_url('user/home/index',$zanpian)}" target="_blank">{$zanpian["user_nickname"]}</a></span>:<span class="time">{$zanpian['cm_addtime']|time_format='Y-m-d H:i:s',1}</span></div>
          <div class="comment-text">{:get_emots(strip_tags($zanpian['cm_content']))}</div>
          <div class="comment-assist clearfix">
          <p class="fl">
            <span class="digg"><a class="sup" data-id="{$zanpian['cm_id']}" data-type="up">支持(<strong>{$zanpian['cm_up']}</strong>)</a></span>
            <span class="digg"><a class="opp" data-id="{$zanpian['cm_id']}" data-type="down">反对(<strong>{$zanpian['cm_down']}</strong>)</a></span>
          </p>
          <p class="fr"><a data-id="{$zanpian['cm_id']}" data-pid="{$zanpian['cm_pid']}" data-vid="{$zanpian['cm_vid']}" data-sid="{$zanpian['cm_sid']}" data-tuid="{$zanpian['cm_uid']}" class="reply">回复</a></p>
          </div>
          <div id="rep{$zanpian["cm_id"]}" class="comms"></div>
        </div>
        {cm pid="'.$zanpian['cm_id'].'" sid="'.$zanpian['cm_sid'].'" order="cm_addtime desc" id="sub" key="kkk"}
        {php}$sublou=count($__LIST__)-$kkk+1;{/php}
        <div class="comment-sub">
          <div class="comment-top">
            <span class="sublou">{$sublou}.楼</span>
            <span class="user"><a href="{:zanpian_user_url('user/home/index',$sub)}" target="_blank">{$sub["user_nickname"]}</a></span> : 
            {notempty name="sub.cm_tid"}回复了 <a href="{:zanpian_user_url('user/home/index',array('user_id'=>$sub.cm_tuid),true,true)}" target='_blank'>{:get_user_info($sub['cm_tuid'],'user_id','user_nickname')}</a>{/notempty}
            <span class="time">{$sub['cm_addtime']|time_format='Y-m-d H:i:s',1}</span>
          </div>
          <div class="comment-text">{:get_emots(strip_tags($sub["cm_content"]))}</div>
          <div class="comment-assist clearfix">
            <p class="fl">
              <span class="digg"><a class="sup" data-id="{$sub['cm_id']}" data-type="up">支持(<strong>{$sub["cm_up"]}</strong>)</a></span>
              <span class="digg"><a class="opp" data-id="{$sub['cm_id']}" data-type="down">反对(<strong>{$sub['cm_down']}</strong>)</a></span>
            </p>
            <p class="fr"><a data-id="{$sub['cm_id']}" data-pid="{$sub['cm_id']}" data-vid="{$sub['cm_vid']}" data-sid="{$sub['cm_sid']}" data-tuid="{$sub['cm_uid']}" class="reply">回复</a></p>
          </div>
          <div id="rep{$sub['cm_id']}" class="comms"></div>
        </div>
        {/cm}
      </div>
    </div>
  </li>
  {/volist}
  {else/}
  <li class="kong">当前没有评论，赶紧抢个沙发！</li>
  {/notempty}
</ul>
{notempty name="list"}
<div class="box-page uipages">
  <ul class="pages" id="cm-pages">
  {$list->render()}
  </ul>
</div>
{/notempty}